﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PlugNT.Cms.Model;
using PlugNT.Cms.BLL;
using PlugNT.Common;
using PlugNT.Cms.Page;

namespace PlugNT.Cms.Web.Admin.Pre_Tables
{
    public partial class DataControl : AdminPage
    {
        private Tables curTables = new Tables();
        protected void Page_Load(object sender, EventArgs e)
        {
            //权限检测
            this.CheckPower();

            if (!IsPostBack)
            {

                try
                {
                    Repeater_admin_bind();
                }
                catch (Exception ex) { Response.Redirect("/Admin/Message.aspx?message=数据绑定错误！" + ex.Message + "&z=no"); }
            }
        }

        private void Repeater_admin_bind()
        {
            DataTable dt = curTables.GetList();
            Repeater_admin.DataSource = dt.DefaultView;
            Repeater_admin.DataBind();
        }

    }
}
